package com.yanqu.road.server.cmd.activity.hsisland.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.HsIslandProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.hsisland.HsIslandActivityModule;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_HS_ISLAND_HELP_LOG_RECEIVE_FROM_CROSS,desc = "海神岛-跨服返回-领取【商会情报-事件奖励】")
public class HsIslandReceiveHelpLogFromCrossCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        HsIslandProto.HsIslandHelpLogReceiveRespMsg respMsg = HsIslandProto.HsIslandHelpLogReceiveRespMsg.parseFrom(packet.getBytes());
        player.getModule(HsIslandActivityModule.class).receiveHelpLogFromCross(respMsg);
    }

    @Override
    public void sendData(GamePlayer player) {}
}
